package me.weijing.common.util;

public class ClickUtil {
	public long lastClickTime = 0;
	// 防止重复点击
	public boolean canClick(int maxTime) {
		long nowtime = System.currentTimeMillis();
		long time = nowtime - lastClickTime;
		lastClickTime = nowtime;
		if (time > maxTime) {
			return true;
		}
		return false;

	}
}
